package com.lion.ball.modules.orderfood.web.model.params.update;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 订单与消费者关联 数据更新请求参数
 * Explain:
 * 
 */
@Schema(description = "订单与消费者关联 数据更新参数")
public class OfdOrderCustomerUpdateParam {
    @Schema(description = "主键", example = "1")
    private long id;
    @Schema(description = "订单编码", example = "1")
    private long orderCode;
    @Schema(description = "客户编码", example = "1")
    private long customerCode;
    @Schema(description = "创建时间", example = "1")
    private long createTime;
    @Schema(description = "更新时间", example = "1")
    private long updateTime;
    @Schema(description = "是否删除 0 - 未删除 1 - 已删除", example = "1")
    private int isDeleted;

    // 无参构造方法
    public OfdOrderCustomerUpdateParam() {
    }

    // 全参数构造方法
    public OfdOrderCustomerUpdateParam(long id, long orderCode, long customerCode, long createTime, long updateTime, int isDeleted) {
        this.id = id;
        this.orderCode = orderCode;
        this.customerCode = customerCode;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
    }

    // 全参数create生成器
    public static OfdOrderCustomerUpdateParam create(long id, long orderCode, long customerCode, long createTime, long updateTime, int isDeleted) {
        return new OfdOrderCustomerUpdateParam(id, orderCode, customerCode, createTime, updateTime, isDeleted);
    }

    // 全参数of生成器
    public static OfdOrderCustomerUpdateParam of(long id, long orderCode, long customerCode, long createTime, long updateTime, int isDeleted) {
        return new OfdOrderCustomerUpdateParam(id, orderCode, customerCode, createTime, updateTime, isDeleted);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public OfdOrderCustomerUpdateParam setId(long id) {
        this.id = id;
        return this;
    }

    public long getOrderCode() {
        return orderCode;
    }

    public OfdOrderCustomerUpdateParam setOrderCode(long orderCode) {
        this.orderCode = orderCode;
        return this;
    }

    public long getCustomerCode() {
        return customerCode;
    }

    public OfdOrderCustomerUpdateParam setCustomerCode(long customerCode) {
        this.customerCode = customerCode;
        return this;
    }

    public long getCreateTime() {
        return createTime;
    }

    public OfdOrderCustomerUpdateParam setCreateTime(long createTime) {
        this.createTime = createTime;
        return this;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public OfdOrderCustomerUpdateParam setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public OfdOrderCustomerUpdateParam setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

    // endregion Getter和Setter方法
}
